package mysql

import "gorm.io/gorm"

type TakeFood struct {
	gorm.Model
	OrderNum int `gorm:"type:int(10);not null;comment:'今日订单'"`
	UserNum  int `gorm:"type:int(10);not null;comment:'本周新用户'"`
	ShopNum  int `gorm:"type:int(10);not null;comment:'本周入住店铺'"`
	RiderNum int `gorm:"type:int(10);not null;comment:'外卖配送员'"`
}

func TakeFoodList() (list []*TakeFood, err error) {
	err = DB.Debug().Find(&list).Error
	if err != nil {
		return nil, err
	}
	return
}
